#include <stdio.h>

int main( void ) {
    int a;

    printf( "Input integer number:" ), scanf( "%d", &a );
    a == 1 ? printf( "Monday\n" ) : a == 2 ? printf( "Tuesday\n" ) : a == 3 ? printf( "Wednesday\n" ) : a == 4 ? printf( "Thursday\n" ) : a == 5 ? printf( "Friday\n" ) : a == 6 ? printf( "Saturday\n" ) : a == 7 ? printf( "Sunday\n" ) : printf( "Error!\n" );

    return 0;
}